<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IRremoteESP8266: IRYorkAc Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IRremoteESP8266
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classIRYorkAc-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">IRYorkAc Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Class for handling detailed York A/C messages.  
 <a href="classIRYorkAc.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ir__York_8h_source.html">ir_York.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for IRYorkAc:</div>
<div class="dyncontent">
<div class="center"><img src="classIRYorkAc__coll__graph.png" border="0" usemap="#IRYorkAc_coll__map" alt="Collaboration graph"/></div>
<map name="IRYorkAc_coll__map" id="IRYorkAc_coll__map">
<area shape="rect" title="Class for handling detailed York A/C messages." alt="" coords="55,95,132,121"/>
<area shape="rect" href="classIRsend.html" title="Class for sending all basic IR protocols." alt="" coords="5,5,72,32"/>
<area shape="rect" href="unionYorkProtocol.html" title="Native representation of a York A/C message." alt="" coords="97,5,199,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a60c80ffea3f8d78910cfaecd23401539"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a60c80ffea3f8d78910cfaecd23401539">IRYorkAc</a> (const uint16_t pin, const bool inverted=false, const bool use_modulation=true)</td></tr>
<tr class="memdesc:a60c80ffea3f8d78910cfaecd23401539"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class constructor.  <a href="classIRYorkAc.html#a60c80ffea3f8d78910cfaecd23401539">More...</a><br /></td></tr>
<tr class="separator:a60c80ffea3f8d78910cfaecd23401539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a837a0f5f511ca3f3faf899a09f8f8174"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a837a0f5f511ca3f3faf899a09f8f8174">stateReset</a> ()</td></tr>
<tr class="separator:a837a0f5f511ca3f3faf899a09f8f8174"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71dc8520efce0ffefc243554ed29c6e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a71dc8520efce0ffefc243554ed29c6e9">send</a> (const uint16_t repeat=<a class="el" href="IRremoteESP8266_8h.html#a1a49dde7ffbd753f7756cf0c9dc6d826">kNoRepeat</a>)</td></tr>
<tr class="memdesc:a71dc8520efce0ffefc243554ed29c6e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Send the current internal state as an IR message.  <a href="classIRYorkAc.html#a71dc8520efce0ffefc243554ed29c6e9">More...</a><br /></td></tr>
<tr class="separator:a71dc8520efce0ffefc243554ed29c6e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae383edf3b0d9a52d12c53261b5c4c16"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#aae383edf3b0d9a52d12c53261b5c4c16">calibrate</a> (void)</td></tr>
<tr class="memdesc:aae383edf3b0d9a52d12c53261b5c4c16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Run the calibration to calculate uSec timing offsets for this platform.  <a href="classIRYorkAc.html#aae383edf3b0d9a52d12c53261b5c4c16">More...</a><br /></td></tr>
<tr class="separator:aae383edf3b0d9a52d12c53261b5c4c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d37c61900600f1c2c6a4eb90c0681f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a7d37c61900600f1c2c6a4eb90c0681f8">begin</a> ()</td></tr>
<tr class="memdesc:a7d37c61900600f1c2c6a4eb90c0681f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set up hardware to be able to send a message.  <a href="classIRYorkAc.html#a7d37c61900600f1c2c6a4eb90c0681f8">More...</a><br /></td></tr>
<tr class="separator:a7d37c61900600f1c2c6a4eb90c0681f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8db0b54efeb85f36b6580ebc3c9bbbde"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a8db0b54efeb85f36b6580ebc3c9bbbde">setPowerToggle</a> (const bool on)</td></tr>
<tr class="separator:a8db0b54efeb85f36b6580ebc3c9bbbde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86e69ac71e912972eedd5a29aaffe872"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a86e69ac71e912972eedd5a29aaffe872">getPowerToggle</a> () const</td></tr>
<tr class="separator:a86e69ac71e912972eedd5a29aaffe872"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86aa97943e74e8b3ba5d30472c6922c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a86aa97943e74e8b3ba5d30472c6922c2">setTemp</a> (const uint8_t temp)</td></tr>
<tr class="memdesc:a86aa97943e74e8b3ba5d30472c6922c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the temperature.  <a href="classIRYorkAc.html#a86aa97943e74e8b3ba5d30472c6922c2">More...</a><br /></td></tr>
<tr class="separator:a86aa97943e74e8b3ba5d30472c6922c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793d2df1896d0d5ebafe6781071d8676"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a793d2df1896d0d5ebafe6781071d8676">getTemp</a> () const</td></tr>
<tr class="memdesc:a793d2df1896d0d5ebafe6781071d8676"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current temperature setting.  <a href="classIRYorkAc.html#a793d2df1896d0d5ebafe6781071d8676">More...</a><br /></td></tr>
<tr class="separator:a793d2df1896d0d5ebafe6781071d8676"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7b42cd7798b5577d4f0bfe2657d7fcb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#aa7b42cd7798b5577d4f0bfe2657d7fcb">setFan</a> (const uint8_t speed)</td></tr>
<tr class="memdesc:aa7b42cd7798b5577d4f0bfe2657d7fcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the speed of the fan.  <a href="classIRYorkAc.html#aa7b42cd7798b5577d4f0bfe2657d7fcb">More...</a><br /></td></tr>
<tr class="separator:aa7b42cd7798b5577d4f0bfe2657d7fcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a045dc64fb8c965f65fbfda92f3efb19c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a045dc64fb8c965f65fbfda92f3efb19c">getFan</a> () const</td></tr>
<tr class="memdesc:a045dc64fb8c965f65fbfda92f3efb19c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current fan speed setting.  <a href="classIRYorkAc.html#a045dc64fb8c965f65fbfda92f3efb19c">More...</a><br /></td></tr>
<tr class="separator:a045dc64fb8c965f65fbfda92f3efb19c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dac4ef32c012b07d51c920267974bfd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a0dac4ef32c012b07d51c920267974bfd">setMode</a> (const uint8_t mode)</td></tr>
<tr class="memdesc:a0dac4ef32c012b07d51c920267974bfd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the desired operation mode.  <a href="classIRYorkAc.html#a0dac4ef32c012b07d51c920267974bfd">More...</a><br /></td></tr>
<tr class="separator:a0dac4ef32c012b07d51c920267974bfd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79ceb5a716061e1dfd1d808691a5e9f2"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a79ceb5a716061e1dfd1d808691a5e9f2">getMode</a> () const</td></tr>
<tr class="memdesc:a79ceb5a716061e1dfd1d808691a5e9f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current operation mode setting.  <a href="classIRYorkAc.html#a79ceb5a716061e1dfd1d808691a5e9f2">More...</a><br /></td></tr>
<tr class="separator:a79ceb5a716061e1dfd1d808691a5e9f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa280a0a616546e49069c5ee342fbb0a5"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#aa280a0a616546e49069c5ee342fbb0a5">getOnTimer</a> (void) const</td></tr>
<tr class="memdesc:aa280a0a616546e49069c5ee342fbb0a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the On Timer setting of the A/C.  <a href="classIRYorkAc.html#aa280a0a616546e49069c5ee342fbb0a5">More...</a><br /></td></tr>
<tr class="separator:aa280a0a616546e49069c5ee342fbb0a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e6f08d5f5ceedef6b2f26d926aa3efb"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a1e6f08d5f5ceedef6b2f26d926aa3efb">getOffTimer</a> (void) const</td></tr>
<tr class="memdesc:a1e6f08d5f5ceedef6b2f26d926aa3efb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Off Timer setting of the A/C.  <a href="classIRYorkAc.html#a1e6f08d5f5ceedef6b2f26d926aa3efb">More...</a><br /></td></tr>
<tr class="separator:a1e6f08d5f5ceedef6b2f26d926aa3efb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2b759427d0c70298f5444499bea4052"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#ab2b759427d0c70298f5444499bea4052">setOnTimer</a> (const uint16_t mins)</td></tr>
<tr class="memdesc:ab2b759427d0c70298f5444499bea4052"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the On Timer value of the A/C.  <a href="classIRYorkAc.html#ab2b759427d0c70298f5444499bea4052">More...</a><br /></td></tr>
<tr class="separator:ab2b759427d0c70298f5444499bea4052"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb9dd28a79a36b05fce6cca63ad78486"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#adb9dd28a79a36b05fce6cca63ad78486">setOffTimer</a> (const uint16_t mins)</td></tr>
<tr class="memdesc:adb9dd28a79a36b05fce6cca63ad78486"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Off Timer value of the A/C.  <a href="classIRYorkAc.html#adb9dd28a79a36b05fce6cca63ad78486">More...</a><br /></td></tr>
<tr class="separator:adb9dd28a79a36b05fce6cca63ad78486"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a050adf388708d403de7a92399d8aa42f"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a050adf388708d403de7a92399d8aa42f">getRaw</a> ()</td></tr>
<tr class="memdesc:a050adf388708d403de7a92399d8aa42f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the raw state of the object, suitable to be sent with the appropriate <a class="el" href="classIRsend.html" title="Class for sending all basic IR protocols.">IRsend</a> object method.  <a href="classIRYorkAc.html#a050adf388708d403de7a92399d8aa42f">More...</a><br /></td></tr>
<tr class="separator:a050adf388708d403de7a92399d8aa42f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dcb694f7d005e19c3ac6d1d0d1efd5f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a7dcb694f7d005e19c3ac6d1d0d1efd5f">setRaw</a> (const uint8_t new_code[], const uint16_t length=<a class="el" href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a>)</td></tr>
<tr class="memdesc:a7dcb694f7d005e19c3ac6d1d0d1efd5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the internal state from a valid code for this protocol.  <a href="classIRYorkAc.html#a7dcb694f7d005e19c3ac6d1d0d1efd5f">More...</a><br /></td></tr>
<tr class="separator:a7dcb694f7d005e19c3ac6d1d0d1efd5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a6e2f89742321d88d2e1cc1dc88aba4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a7a6e2f89742321d88d2e1cc1dc88aba4">calcChecksum</a> ()</td></tr>
<tr class="memdesc:a7a6e2f89742321d88d2e1cc1dc88aba4"><td class="mdescLeft">&#160;</td><td class="mdescRight">CRC16-16 (a.k.a. CRC-16-IBM)  <a href="classIRYorkAc.html#a7a6e2f89742321d88d2e1cc1dc88aba4">More...</a><br /></td></tr>
<tr class="separator:a7a6e2f89742321d88d2e1cc1dc88aba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51d20e6bf26b22d3db5ac665a4b78068"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a51d20e6bf26b22d3db5ac665a4b78068">toCommon</a> (const <a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a> *prev=NULL) const</td></tr>
<tr class="memdesc:a51d20e6bf26b22d3db5ac665a4b78068"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the current internal state into its <a class="el" href="structstdAc_1_1state__t.html" title="Structure to hold a common A/C state.">stdAc::state_t</a> equivalent.  <a href="classIRYorkAc.html#a51d20e6bf26b22d3db5ac665a4b78068">More...</a><br /></td></tr>
<tr class="separator:a51d20e6bf26b22d3db5ac665a4b78068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86cc941375bdb67b1d493e4427a8839e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a86cc941375bdb67b1d493e4427a8839e">toString</a> () const</td></tr>
<tr class="memdesc:a86cc941375bdb67b1d493e4427a8839e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert the current internal state into a human readable string.  <a href="classIRYorkAc.html#a86cc941375bdb67b1d493e4427a8839e">More...</a><br /></td></tr>
<tr class="separator:a86cc941375bdb67b1d493e4427a8839e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a1a9252c344d135b5306e25115ee0f5e5"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a1a9252c344d135b5306e25115ee0f5e5">convertMode</a> (const <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> mode)</td></tr>
<tr class="memdesc:a1a9252c344d135b5306e25115ee0f5e5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f" title="Common A/C settings for A/C operating modes.">stdAc::opmode_t</a> enum into its native mode.  <a href="classIRYorkAc.html#a1a9252c344d135b5306e25115ee0f5e5">More...</a><br /></td></tr>
<tr class="separator:a1a9252c344d135b5306e25115ee0f5e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc5170e87d5d4cfefe7fc9fec2bfea2"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a4dc5170e87d5d4cfefe7fc9fec2bfea2">convertFan</a> (const <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> speed)</td></tr>
<tr class="memdesc:a4dc5170e87d5d4cfefe7fc9fec2bfea2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383" title="Common A/C settings for Fan Speeds.">stdAc::fanspeed_t</a> enum into it's native speed.  <a href="classIRYorkAc.html#a4dc5170e87d5d4cfefe7fc9fec2bfea2">More...</a><br /></td></tr>
<tr class="separator:a4dc5170e87d5d4cfefe7fc9fec2bfea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45ae7d8e7cd4bd0b5d225d39908df41f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a45ae7d8e7cd4bd0b5d225d39908df41f">toCommonMode</a> (const uint8_t mode)</td></tr>
<tr class="memdesc:a45ae7d8e7cd4bd0b5d225d39908df41f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a native mode into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent.  <a href="classIRYorkAc.html#a45ae7d8e7cd4bd0b5d225d39908df41f">More...</a><br /></td></tr>
<tr class="separator:a45ae7d8e7cd4bd0b5d225d39908df41f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad33a65b43e04e47db78b36fe004aaebc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#ad33a65b43e04e47db78b36fe004aaebc">toCommonFanSpeed</a> (const uint8_t speed)</td></tr>
<tr class="memdesc:ad33a65b43e04e47db78b36fe004aaebc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert a native fan speed into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent.  <a href="classIRYorkAc.html#ad33a65b43e04e47db78b36fe004aaebc">More...</a><br /></td></tr>
<tr class="separator:ad33a65b43e04e47db78b36fe004aaebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:ad76a86732e1e08591d3109243e6c057b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classIRsend.html">IRsend</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">_irsend</a></td></tr>
<tr class="memdesc:ad76a86732e1e08591d3109243e6c057b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Instance of the IR send class.  <a href="classIRYorkAc.html#ad76a86732e1e08591d3109243e6c057b">More...</a><br /></td></tr>
<tr class="separator:ad76a86732e1e08591d3109243e6c057b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a381ca2c3b382605f47d960096cfee5d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="unionYorkProtocol.html">YorkProtocol</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classIRYorkAc.html#a381ca2c3b382605f47d960096cfee5d9">_</a></td></tr>
<tr class="separator:a381ca2c3b382605f47d960096cfee5d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class for handling detailed York A/C messages. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a60c80ffea3f8d78910cfaecd23401539"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60c80ffea3f8d78910cfaecd23401539">&#9670;&nbsp;</a></span>IRYorkAc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">IRYorkAc::IRYorkAc </td>
          <td>(</td>
          <td class="paramtype">const uint16_t&#160;</td>
          <td class="paramname"><em>pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>inverted</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>use_modulation</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Class constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin</td><td>GPIO to be used when sending. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">inverted</td><td>Is the output signal to be inverted? </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">use_modulation</td><td>Is frequency modulation to be used? </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a7d37c61900600f1c2c6a4eb90c0681f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d37c61900600f1c2c6a4eb90c0681f8">&#9670;&nbsp;</a></span>begin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set up hardware to be able to send a message. </p>

</div>
</div>
<a id="a7a6e2f89742321d88d2e1cc1dc88aba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a6e2f89742321d88d2e1cc1dc88aba4">&#9670;&nbsp;</a></span>calcChecksum()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::calcChecksum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CRC16-16 (a.k.a. CRC-16-IBM) </p>

</div>
</div>
<a id="aae383edf3b0d9a52d12c53261b5c4c16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae383edf3b0d9a52d12c53261b5c4c16">&#9670;&nbsp;</a></span>calibrate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int8_t IRYorkAc::calibrate </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Run the calibration to calculate uSec timing offsets for this platform. </p>
<dl class="section return"><dt>Returns</dt><dd>The uSec timing offset needed per modulation of the IR Led. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>This will produce a 65ms IR signal pulse at 38kHz. Only ever needs to be run once per object instantiation, if at all. </dd></dl>

</div>
</div>
<a id="a4dc5170e87d5d4cfefe7fc9fec2bfea2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc5170e87d5d4cfefe7fc9fec2bfea2">&#9670;&nbsp;</a></span>convertFan()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t IRYorkAc::convertFan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a>&#160;</td>
          <td class="paramname"><em>speed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a <a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383" title="Common A/C settings for Fan Speeds.">stdAc::fanspeed_t</a> enum into it's native speed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The enum to be converted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The native equivalent of the enum. </dd></dl>

</div>
</div>
<a id="a1a9252c344d135b5306e25115ee0f5e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a9252c344d135b5306e25115ee0f5e5">&#9670;&nbsp;</a></span>convertMode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t IRYorkAc::convertMode </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a <a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f" title="Common A/C settings for A/C operating modes.">stdAc::opmode_t</a> enum into its native mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The enum to be converted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The native equivalent of the enum. </dd></dl>

</div>
</div>
<a id="a045dc64fb8c965f65fbfda92f3efb19c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a045dc64fb8c965f65fbfda92f3efb19c">&#9670;&nbsp;</a></span>getFan()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t IRYorkAc::getFan </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current fan speed setting. </p>
<dl class="section return"><dt>Returns</dt><dd>The current fan speed. </dd></dl>

</div>
</div>
<a id="a79ceb5a716061e1dfd1d808691a5e9f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79ceb5a716061e1dfd1d808691a5e9f2">&#9670;&nbsp;</a></span>getMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t IRYorkAc::getMode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current operation mode setting. </p>
<dl class="section return"><dt>Returns</dt><dd>The current operation mode. </dd></dl>

</div>
</div>
<a id="a1e6f08d5f5ceedef6b2f26d926aa3efb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e6f08d5f5ceedef6b2f26d926aa3efb">&#9670;&nbsp;</a></span>getOffTimer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t IRYorkAc::getOffTimer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Off Timer setting of the A/C. </p>
<dl class="section return"><dt>Returns</dt><dd>The Nr. of minutes the Off Timer is set for. </dd></dl>
<dl class="section note"><dt>Note</dt><dd>Sleep &amp; Off Timer share the same timer. </dd></dl>

</div>
</div>
<a id="aa280a0a616546e49069c5ee342fbb0a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa280a0a616546e49069c5ee342fbb0a5">&#9670;&nbsp;</a></span>getOnTimer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t IRYorkAc::getOnTimer </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the On Timer setting of the A/C. </p>
<dl class="section return"><dt>Returns</dt><dd>The Nr. of minutes the On Timer is set for. </dd></dl>

</div>
</div>
<a id="a86e69ac71e912972eedd5a29aaffe872"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86e69ac71e912972eedd5a29aaffe872">&#9670;&nbsp;</a></span>getPowerToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool IRYorkAc::getPowerToggle </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a050adf388708d403de7a92399d8aa42f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a050adf388708d403de7a92399d8aa42f">&#9670;&nbsp;</a></span>getRaw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t * IRYorkAc::getRaw </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the raw state of the object, suitable to be sent with the appropriate <a class="el" href="classIRsend.html" title="Class for sending all basic IR protocols.">IRsend</a> object method. </p>
<dl class="section return"><dt>Returns</dt><dd>A copy of the internal state. </dd></dl>

</div>
</div>
<a id="a793d2df1896d0d5ebafe6781071d8676"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a793d2df1896d0d5ebafe6781071d8676">&#9670;&nbsp;</a></span>getTemp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t IRYorkAc::getTemp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the current temperature setting. </p>
<dl class="section return"><dt>Returns</dt><dd>Get current setting for temp. in degrees celsius. </dd></dl>

</div>
</div>
<a id="a71dc8520efce0ffefc243554ed29c6e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71dc8520efce0ffefc243554ed29c6e9">&#9670;&nbsp;</a></span>send()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::send </td>
          <td>(</td>
          <td class="paramtype">const uint16_t&#160;</td>
          <td class="paramname"><em>repeat</em> = <code><a class="el" href="IRremoteESP8266_8h.html#a1a49dde7ffbd753f7756cf0c9dc6d826">kNoRepeat</a></code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Send the current internal state as an IR message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">repeat</td><td>Nr. of times the message will be repeated. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aa7b42cd7798b5577d4f0bfe2657d7fcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7b42cd7798b5577d4f0bfe2657d7fcb">&#9670;&nbsp;</a></span>setFan()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setFan </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>speed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the speed of the fan. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The desired setting. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The fan speed is locked to Low when in Dry mode, to auto when in auto mode. "Fan" mode has no support for "auto" speed. </dd></dl>

</div>
</div>
<a id="a0dac4ef32c012b07d51c920267974bfd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dac4ef32c012b07d51c920267974bfd">&#9670;&nbsp;</a></span>setMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setMode </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the desired operation mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The desired operation mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="adb9dd28a79a36b05fce6cca63ad78486"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb9dd28a79a36b05fce6cca63ad78486">&#9670;&nbsp;</a></span>setOffTimer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setOffTimer </td>
          <td>(</td>
          <td class="paramtype">const uint16_t&#160;</td>
          <td class="paramname"><em>nr_of_mins</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Off Timer value of the A/C. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nr_of_mins</td><td>The number of minutes the timer should be. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The timer time only has a resolution of 10 mins. </dd>
<dd>
Setting the Off Timer active will cancel the Sleep timer/setting. </dd></dl>

</div>
</div>
<a id="ab2b759427d0c70298f5444499bea4052"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2b759427d0c70298f5444499bea4052">&#9670;&nbsp;</a></span>setOnTimer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setOnTimer </td>
          <td>(</td>
          <td class="paramtype">const uint16_t&#160;</td>
          <td class="paramname"><em>nr_of_mins</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the On Timer value of the A/C. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">nr_of_mins</td><td>The number of minutes the timer should be. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>The timer time only has a resolution of 10 mins. </dd>
<dd>
Setting the On Timer active will cancel the Sleep timer/setting. </dd></dl>

</div>
</div>
<a id="a8db0b54efeb85f36b6580ebc3c9bbbde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8db0b54efeb85f36b6580ebc3c9bbbde">&#9670;&nbsp;</a></span>setPowerToggle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setPowerToggle </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>on</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7dcb694f7d005e19c3ac6d1d0d1efd5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7dcb694f7d005e19c3ac6d1d0d1efd5f">&#9670;&nbsp;</a></span>setRaw()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setRaw </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>new_code</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint16_t&#160;</td>
          <td class="paramname"><em>length</em> = <code><a class="el" href="IRremoteESP8266_8h.html#ac7292d2884d3a976291f18e5bc52619e">kYorkStateLength</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the internal state from a valid code for this protocol. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">new_code</td><td>A valid code for this protocol. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>Length of the code in bytes. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a86aa97943e74e8b3ba5d30472c6922c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86aa97943e74e8b3ba5d30472c6922c2">&#9670;&nbsp;</a></span>setTemp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::setTemp </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>degrees</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the temperature. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">degrees</td><td>The temperature in degrees celsius. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a837a0f5f511ca3f3faf899a09f8f8174"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a837a0f5f511ca3f3faf899a09f8f8174">&#9670;&nbsp;</a></span>stateReset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void IRYorkAc::stateReset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a51d20e6bf26b22d3db5ac665a4b78068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51d20e6bf26b22d3db5ac665a4b78068">&#9670;&nbsp;</a></span>toCommon()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a> IRYorkAc::toCommon </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structstdAc_1_1state__t.html">stdAc::state_t</a> *&#160;</td>
          <td class="paramname"><em>prev</em> = <code>NULL</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert the current internal state into its <a class="el" href="structstdAc_1_1state__t.html" title="Structure to hold a common A/C state.">stdAc::state_t</a> equivalent. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">prev</td><td>Ptr to the previous state if required. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent of the native settings. </dd></dl>

</div>
</div>
<a id="ad33a65b43e04e47db78b36fe004aaebc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad33a65b43e04e47db78b36fe004aaebc">&#9670;&nbsp;</a></span>toCommonFanSpeed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacestdAc.html#a8bb0dbf18fe69f639f4ac0b3ff133383">stdAc::fanspeed_t</a> IRYorkAc::toCommonFanSpeed </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>speed</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a native fan speed into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The native setting to be converted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent of the native setting. </dd></dl>

</div>
</div>
<a id="a45ae7d8e7cd4bd0b5d225d39908df41f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45ae7d8e7cd4bd0b5d225d39908df41f">&#9670;&nbsp;</a></span>toCommonMode()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacestdAc.html#a99ad268c783486f9b3207cb78f48444f">stdAc::opmode_t</a> IRYorkAc::toCommonMode </td>
          <td>(</td>
          <td class="paramtype">const uint8_t&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Convert a native mode into its <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>The native setting to be converted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="namespacestdAc.html" title="Enumerators and Structures for the Common A/C API.">stdAc</a> equivalent of the native setting. </dd></dl>

</div>
</div>
<a id="a86cc941375bdb67b1d493e4427a8839e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86cc941375bdb67b1d493e4427a8839e">&#9670;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="IRremoteESP8266_8h.html#afbeda3fd1bdc8c37d01bdf9f5c8274ff">String</a> IRYorkAc::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convert the current internal state into a human readable string. </p>
<dl class="section return"><dt>Returns</dt><dd>A human readable string. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a381ca2c3b382605f47d960096cfee5d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a381ca2c3b382605f47d960096cfee5d9">&#9670;&nbsp;</a></span>_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="unionYorkProtocol.html">YorkProtocol</a> IRYorkAc::_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ad76a86732e1e08591d3109243e6c057b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad76a86732e1e08591d3109243e6c057b">&#9670;&nbsp;</a></span>_irsend</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classIRsend.html">IRsend</a> IRYorkAc::_irsend</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Instance of the IR send class. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="ir__York_8h_source.html">ir_York.h</a></li>
<li>src/<a class="el" href="ir__York_8cpp.html">ir_York.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
